package com.kyw.android_dev_util.common;

import lombok.Data;

import java.io.Serializable;
@Data
public class ResResult {
    private int flag;//执行结果,200表示业务执行ok
    private String uiMessage = "操作成功";//返回结果信息
    private Object data;//返回数据
    public ResResult(int flag) {
        super();
        this.flag = flag;
    }
    public ResResult(int flag, String uiMessage) {
        super();
        this.flag = flag;
        this.uiMessage = uiMessage;
    }
    public ResResult(int flag,Object data) {
        this.flag = flag;
        this.uiMessage = uiMessage;
        this.data = data;
    }
    public ResResult(int flag, String uiMessage, Object data) {
        this.flag = flag;
        this.uiMessage = uiMessage;
        this.data = data;
    }
}
